﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.JuShuiTan.Model.Inter.OrdersQuery
{
    public class Order
    {

        private bool _is_cod;
        /// <summary>
        /// 是否货到付款
        /// </summary>
        public bool is_cod
        {
            get { return _is_cod; }
            set { _is_cod = value; }
        }

        /// <summary>
        /// 快递单号
        /// </summary>
        public string l_id { get; set; }

        /// <summary>
        /// 发货日期 
        /// </summary>
        public string send_date { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public string pay_date { get; set; }

        /// <summary>
        /// 运费，保留两位小数，单位（元）
        /// </summary>
        public string freight { get; set; }

        /// <summary>
        /// 收货地址
        /// </summary>
        public string receiver_address { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        public string receiver_district { get; set; }

        /// <summary>
        /// 发货仓编号
        /// </summary>
        public string wms_co_id { get; set; }

        /// <summary>
        /// 快递公司
        /// </summary>
        public string logistics_company { get; set; }

        /// <summary>
        /// 抵扣金额
        /// </summary>
        public decimal free_amount { get; set; }

        /// <summary>
        /// 店铺名称
        /// </summary>
        public string shop_name { get; set; }

        /// <summary>
        /// 问题类型，仅当问题订单时有效
        /// </summary>
        public string question_type { get; set; }

        /// <summary>
        /// 外部支付单号
        /// </summary>
        public string outer_pay_id { get; set; }

        /// <summary>
        /// 线上订单号，最长不超过20;唯一
        /// </summary>
        public string so_id { get; set; }

        /// <summary>
        /// 订单类型，普通订单；分销Plus；供销Plus；换货订单
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 订单来源，
        /// ERP：手工下单； 
        /// COPY：复制； 
        /// MERGE：合并； 
        /// SPLIT：拆分；
        /// 拆分还原； 
        /// MOBILE：手机； 
        /// IMPORT:导入； 
        /// drp-s：供销推送； 
        /// drp-d：分销推送； 
        /// KWAISHOP：快手；
        /// 微商城； PINDUODUO；
        /// 拼多多； TOUTIAOFXG；
        /// 头条放心
        /// </summary>
        public string order_from { get; set; }

        /// <summary>
        /// 聚水潭订单状态
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 应付金额，保留两位小数，单位（元）
        /// </summary>
        public decimal pay_amount { get; set; }

        /// <summary>
        /// 买家昵称 
        /// </summary>
        public string shop_buyer_id { get; set; }

        /// <summary>
        /// 平台买家唯一值，仅支持天猫，抖音，快手
        /// </summary>
        public string open_id { get; set; }

        /// <summary>
        /// 平台订单状态： 
        /// 等待买家付款=WAIT_BUYER_PAY， 
        /// 等待卖家发货=WAIT_SELLER_SEND_GOODS,
        /// 等待买家确认收货=WAIT_BUYER_CONFIRM_GOODS, 
        /// 交易成功=TRADE_FINISHED, 付款后交易关闭=TRADE_CLOSED,
        /// 付款前交易关闭=TRADE_CLOSED_BY_TAOBAO
        /// </summary>
        public string shop_status { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        public string receiver_mobile { get; set; }

        /// <summary>
        /// 下单时间
        /// </summary>
        public string order_date { get; set; }

        /// <summary>
        /// 问题描述
        /// </summary>
        public string question_desc { get; set; }

        /// <summary>
        /// 收件信息-市
        /// </summary>
        public string receiver_city { get; set; }

        /// <summary>
        /// 收件信息-省
        /// </summary>
        public string receiver_state { get; set; }

        /// <summary>
        /// 收件信息-收件人
        /// </summary>
        public string receiver_name { get; set; }

        /// <summary>
        /// ERP内部订单号，唯一
        /// </summary>
        public int o_id { get; set; }

        /// <summary>
        /// 店铺编号
        /// </summary>
        public int shop_id { get; set; }

        /// <summary>
        /// 公司编号
        /// </summary>
        public int co_id { get; set; }

        /// <summary>
        /// 订单备注；卖家备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 分销商编号
        /// </summary>
        public string drp_co_id_from { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public string modified { get; set; }

        /// <summary>
        /// 标签-延时发货
        /// </summary>
        public string labels { get; set; }

        /// <summary>
        /// 实际支付金额
        /// </summary>
        public decimal paid_amount { get; set; }

        /// <summary>
        /// 币种
        /// </summary>
        public string currency { get; set; }

        /// <summary>
        /// 买家留言
        /// </summary>
        public string buyer_message { get; set; }

        /// <summary>
        /// 物流公司编码
        /// </summary>
        public string lc_id { get; set; }

        /// <summary>
        /// 发票抬头 
        /// </summary>
        public string invoice_title { get; set; }

        /// <summary>
        /// 发票类型
        /// </summary>
        public string invoice_type { get; set; }

        /// <summary>
        /// 发票税号 
        /// </summary>
        public string buyer_tax_no { get; set; }

        /// <summary>
        /// 订单业务员
        /// </summary>
        public string creator_name { get; set; }

        /// <summary>
        /// 计划发货时间 
        /// </summary>
        public string plan_delivery_date { get; set; }

        /// <summary>
        /// 线下备注 
        /// </summary>
        public string node { get; set; }

        /// <summary>
        /// 收件信息-街道
        /// </summary>
        public string receiver_town { get; set; }

        /// <summary>
        /// 供销商编号 
        /// </summary>
        public string drp_co_id_to { get; set; }

        /// <summary>
        /// 运费成本
        /// </summary>
        public string f_freight { get; set; }

        /// <summary>
        /// 店铺站点信息
        /// </summary>
        public string shop_site { get; set; }
         
        //国际物流单号
        public string un_lid { get; set; }

        /// <summary>
        /// 确认收货时间（仅限淘系平台、头条放心购、拼多多、苏宁易购、快手电商、有赞微商城）
        /// </summary>
        public string end_time { get; set; }

        /// <summary>
        /// 国家代码;
        /// </summary>
        public string receiver_country { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public string receiver_zip { get; set; }

        /// <summary>
        /// 旗帜(1红旗，2黄旗，3绿旗，4蓝旗，5紫旗)）
        /// </summary>
        public string seller_flag { get; set; }

        /// <summary>
        /// 收货邮箱 
        /// </summary>
        public string receiver_email { get; set; }

        /// <summary>
        /// 订单创建时间
        /// </summary>
        public string created { get; set; }

        /// <summary>
        /// 商品（商品总数.sku_id*qty）
        /// </summary>
        public string skus { get; set; }

        /// <summary>
        /// 实称重量 
        /// </summary>
        public string f_weight { get; set; }

        /// <summary>
        /// 重量 
        /// </summary>
        public int weight { get; set; }

        /// <summary>
        /// 买家ID（系统根据shop_buy_id生成的）
        /// </summary>
        public string buyer_id { get; set; }

        /// <summary>
        /// 买家实付 
        /// </summary>
        public string buyer_paid_amount { get; set; }

        /// <summary>
        /// 卖家实收 
        /// </summary>
        public string seller_income_amount { get; set; }

        /// <summary
        /// 实发快递渠道
        /// </summary>
        public string chosen_channel { get; set; }

        /// <summary>
        /// 支付信息 
        /// </summary>
        public List<pays> pays { get; set; }

        /// <summary>
        /// 商品信息
        /// </summary>
        public List<OrderItem> items { get; set; }
    }
}
